home *** CD-ROM | disk | FTP | other *** search
/ Champak 132 (Alt) / Vol 132.iso / games / 3d_hyper / 3d_hyper.dcr / Scripts_53_TrackDefinitionScript.ls < prev    next >
Encoding:
Text File  |  2011-06-09  |  10.8 KB  |  214 lines

  1. on getTrack whichTrack
  2.   theTrack = [:]
  3.   addProp(theTrack, #road, [])
  4.   addProp(theTrack, #objects, [])
  5.   if whichTrack = 0 then
  6.     add(theTrack.road, [#type: #Straight, #num: 5, #height: 0])
  7.     add(theTrack.road, [#type: #left, #num: 22, #height: 0, #Degree: 4])
  8.     add(theTrack.road, [#type: #Straight, #num: 2, #height: 0])
  9.     add(theTrack.road, [#type: #left, #num: 23, #height: -0, #Degree: 4])
  10.     add(theTrack.road, [#type: #Straight, #num: 10, #height: 0])
  11.     add(theTrack.road, [#type: #left, #num: 23, #height: 0, #Degree: 4])
  12.     add(theTrack.road, [#type: #Straight, #num: 2, #height: 0])
  13.     add(theTrack.road, [#type: #left, #num: 22, #height: 0, #Degree: 4])
  14.     add(theTrack.road, [#type: #Straight, #num: 4, #height: 0])
  15.     add(theTrack.road, [#type: #Connect, #num: 1, #height: 0])
  16.   else
  17.     if whichTrack = 2 then
  18.       add(theTrack.road, [#type: #Straight, #num: 3, #height: 0])
  19.       add(theTrack.road, [#type: #Straight, #num: 2, #height: 60])
  20.       add(theTrack.road, [#type: #left, #num: 45, #height: 0.90000000000000002, #Degree: 8])
  21.       add(theTrack.road, [#type: #Straight, #num: 8, #height: 0])
  22.       add(theTrack.road, [#type: #right, #num: 12, #height: 0, #Degree: 5])
  23.       add(theTrack.road, [#type: #Straight, #num: 4, #height: 0])
  24.       add(theTrack.road, [#type: #right, #num: 60, #height: 0, #Degree: 3.79999999999999982])
  25.       add(theTrack.road, [#type: #Straight, #num: 6, #height: 0])
  26.       add(theTrack.road, [#type: #Straight, #num: 3, #height: -50])
  27.       add(theTrack.road, [#type: #left, #num: 10, #height: 0, #Degree: 5])
  28.       add(theTrack.road, [#type: #Straight, #num: 1, #height: 0])
  29.       add(theTrack.road, [#type: #Straight, #num: 2, #height: 18])
  30.       add(theTrack.road, [#type: #Straight, #num: 6, #height: 0])
  31.       add(theTrack.road, [#type: #left, #num: 10, #height: 0, #Degree: 5])
  32.       add(theTrack.road, [#type: #Straight, #num: 6, #height: 0])
  33.       add(theTrack.road, [#type: #left, #num: 18, #height: 0, #Degree: 7])
  34.       add(theTrack.road, [#type: #Straight, #num: 9, #height: -1])
  35.       add(theTrack.road, [#type: #left, #num: 11, #height: -5, #Degree: 5.63640000000000008])
  36.       add(theTrack.road, [#type: #Connect, #num: 1, #height: 0])
  37.       theTrack.objects[1] = #start
  38.       theTrack.objects[5] = #Billboard
  39.       theTrack.objects[22] = #Billboard
  40.       theTrack.objects[31] = #Billboard
  41.       theTrack.objects[45] = #Billboard
  42.       theTrack.objects[60] = #Billboard
  43.       theTrack.objects[73] = #Billboard
  44.       theTrack.objects[86] = #Billboard
  45.       theTrack.objects[99] = #Billboard
  46.       theTrack.objects[110] = #Billboard
  47.       theTrack.objects[123] = #Billboard
  48.       theTrack.objects[145] = #Billboard
  49.       theTrack.objects[160] = #Billboard
  50.       theTrack.objects[174] = #Billboard
  51.       theTrack.objects[186] = #Billboard
  52.       theTrack.objects[198] = #Billboard
  53.       theTrack.objects[209] = #Billboard
  54.       theTrack.objects[54] = #Powerup
  55.       theTrack.objects[95] = #Powerup
  56.       theTrack.objects[155] = #Powerup
  57.       theTrack.objects[201] = #Powerup
  58.       theTrack.objects[7] = #Building
  59.       theTrack.objects[19] = #Building
  60.       theTrack.objects[30] = #Building
  61.       theTrack.objects[48] = #Building
  62.       theTrack.objects[61] = #Building
  63.       theTrack.objects[74] = #Building
  64.       theTrack.objects[89] = #Building
  65.       theTrack.objects[102] = #Building
  66.       theTrack.objects[115] = #Building
  67.       theTrack.objects[147] = #Building
  68.       theTrack.objects[161] = #Building
  69.       theTrack.objects[172] = #Building
  70.       theTrack.objects[185] = #Building
  71.       theTrack.objects[199] = #Building
  72.       theTrack.objects[213] = #Building
  73.     else
  74.       if whichTrack = 1 then
  75.         add(theTrack.road, [#type: #Straight, #num: 2, #height: 0])
  76.         add(theTrack.road, [#type: #right, #num: 3, #height: 20, #Degree: 4])
  77.         add(theTrack.road, [#type: #right, #num: 4, #height: 30, #Degree: 5])
  78.         add(theTrack.road, [#type: #right, #num: 5, #height: 0, #Degree: 6])
  79.         add(theTrack.road, [#type: #Straight, #num: 8, #height: -15])
  80.         add(theTrack.road, [#type: #right, #num: 30, #height: -8, #Degree: 6])
  81.         add(theTrack.road, [#type: #Straight, #num: 3, #height: 0])
  82.         add(theTrack.road, [#type: #left, #num: 20, #height: 39, #Degree: 3])
  83.         add(theTrack.road, [#type: #left, #num: 10, #height: 0, #Degree: 4])
  84.         add(theTrack.road, [#type: #left, #num: 20, #height: -20, #Degree: 3])
  85.         add(theTrack.road, [#type: #right, #num: 30, #height: -10, #Degree: 6])
  86.         add(theTrack.road, [#type: #right, #num: 20, #height: 3, #Degree: 1])
  87.         add(theTrack.road, [#type: #Straight, #num: 5, #height: 6])
  88.         add(theTrack.road, [#type: #right, #num: 20, #height: 3, #Degree: 4])
  89.         add(theTrack.road, [#type: #Straight, #num: 5, #height: 0])
  90.         add(theTrack.road, [#type: #right, #num: 5, #height: -15, #Degree: 3])
  91.         add(theTrack.road, [#type: #Straight, #num: 4, #height: 10])
  92.         add(theTrack.road, [#type: #left, #num: 5, #height: 0, #Degree: 3])
  93.         add(theTrack.road, [#type: #Straight, #num: 2, #height: 10])
  94.         add(theTrack.road, [#type: #Connect, #num: 1, #height: 0])
  95.         theTrack.objects[1] = #start
  96.         theTrack.objects[5] = #Billboard
  97.         theTrack.objects[22] = #Billboard
  98.         theTrack.objects[31] = #Billboard
  99.         theTrack.objects[45] = #Billboard
  100.         theTrack.objects[60] = #Billboard
  101.         theTrack.objects[73] = #Billboard
  102.         theTrack.objects[86] = #Billboard
  103.         theTrack.objects[99] = #Billboard
  104.         theTrack.objects[110] = #Billboard
  105.         theTrack.objects[123] = #Billboard
  106.         theTrack.objects[145] = #Billboard
  107.         theTrack.objects[160] = #Billboard
  108.         theTrack.objects[174] = #Billboard
  109.         theTrack.objects[186] = #Billboard
  110.         theTrack.objects[198] = #Billboard
  111.         theTrack.objects[54] = #Powerup
  112.         theTrack.objects[112] = #Powerup
  113.         theTrack.objects[165] = #Powerup
  114.         theTrack.objects[7] = #Building
  115.         theTrack.objects[19] = #Building
  116.         theTrack.objects[30] = #Building
  117.         theTrack.objects[48] = #Building
  118.         theTrack.objects[61] = #Building
  119.         theTrack.objects[74] = #Building
  120.         theTrack.objects[89] = #Building
  121.         theTrack.objects[102] = #Building
  122.         theTrack.objects[115] = #Building
  123.         theTrack.objects[147] = #Building
  124.         theTrack.objects[161] = #Building
  125.         theTrack.objects[172] = #Building
  126.         theTrack.objects[185] = #Building
  127.         theTrack.objects[199] = #Building
  128.       else
  129.         if whichTrack = 3 then
  130.           add(theTrack.road, [#type: #Straight, #num: 5, #height: 0])
  131.           add(theTrack.road, [#type: #right, #num: 15, #height: 15, #Degree: 8])
  132.           add(theTrack.road, [#type: #Straight, #num: 2, #height: 0])
  133.           add(theTrack.road, [#type: #left, #num: 5, #height: -3, #Degree: 6])
  134.           add(theTrack.road, [#type: #right, #num: 5, #height: -8, #Degree: 6])
  135.           add(theTrack.road, [#type: #left, #num: 5, #height: -5, #Degree: 6])
  136.           add(theTrack.road, [#type: #right, #num: 12, #height: 0, #Degree: 8])
  137.           add(theTrack.road, [#type: #Straight, #num: 3, #height: 20])
  138.           add(theTrack.road, [#type: #right, #num: 13, #height: 10, #Degree: 9])
  139.           add(theTrack.road, [#type: #Straight, #num: 5, #height: -8])
  140.           add(theTrack.road, [#type: #left, #num: 13, #height: -6, #Degree: 9])
  141.           add(theTrack.road, [#type: #Straight, #num: 6, #height: 0])
  142.           add(theTrack.road, [#type: #left, #num: 30, #height: 1.39999999999999991, #Degree: 9])
  143.           add(theTrack.road, [#type: #Straight, #num: 3, #height: 0])
  144.           add(theTrack.road, [#type: #left, #num: 30, #height: -15, #Degree: 6])
  145.           add(theTrack.road, [#type: #Straight, #num: 9, #height: 10])
  146.           add(theTrack.road, [#type: #right, #num: 15, #height: 0, #Degree: 6])
  147.           add(theTrack.road, [#type: #Straight, #num: 2, #height: 0])
  148.           add(theTrack.road, [#type: #right, #num: 7, #height: 20, #Degree: 6])
  149.           add(theTrack.road, [#type: #Straight, #num: 2, #height: 15])
  150.           add(theTrack.road, [#type: #right, #num: 15, #height: -5, #Degree: 6])
  151.           add(theTrack.road, [#type: #Straight, #num: 2, #height: 0])
  152.           add(theTrack.road, [#type: #left, #num: 15, #height: -8, #Degree: 6])
  153.           add(theTrack.road, [#type: #Straight, #num: 5, #height: 0])
  154.           add(theTrack.road, [#type: #right, #num: 16, #height: -4, #Degree: 9])
  155.           add(theTrack.road, [#type: #Straight, #num: 5, #height: 0])
  156.           add(theTrack.road, [#type: #right, #num: 7, #height: 8, #Degree: 4])
  157.           add(theTrack.road, [#type: #Straight, #num: 13, #height: 13.5])
  158.           add(theTrack.road, [#type: #left, #num: 7, #height: 15, #Degree: 6.5])
  159.           add(theTrack.road, [#type: #Straight, #num: 4, #height: -25])
  160.           add(theTrack.road, [#type: #Connect, #num: 1, #height: 0])
  161.           theTrack.objects[1] = #start
  162.           theTrack.objects[5] = #Billboard
  163.           theTrack.objects[22] = #Billboard
  164.           theTrack.objects[31] = #Billboard
  165.           theTrack.objects[45] = #Billboard
  166.           theTrack.objects[60] = #Billboard
  167.           theTrack.objects[73] = #Billboard
  168.           theTrack.objects[86] = #Billboard
  169.           theTrack.objects[99] = #Billboard
  170.           theTrack.objects[110] = #Billboard
  171.           theTrack.objects[123] = #Billboard
  172.           theTrack.objects[145] = #Billboard
  173.           theTrack.objects[160] = #Billboard
  174.           theTrack.objects[174] = #Billboard
  175.           theTrack.objects[186] = #Billboard
  176.           theTrack.objects[198] = #Billboard
  177.           theTrack.objects[209] = #Billboard
  178.           theTrack.objects[221] = #Billboard
  179.           theTrack.objects[246] = #Billboard
  180.           theTrack.objects[261] = #Billboard
  181.           theTrack.objects[61] = #Powerup
  182.           theTrack.objects[128] = #Powerup
  183.           theTrack.objects[184] = #Powerup
  184.           theTrack.objects[249] = #Powerup
  185.           theTrack.objects[7] = #Building
  186.           theTrack.objects[19] = #Building
  187.           theTrack.objects[30] = #Building
  188.           theTrack.objects[48] = #Building
  189.           theTrack.objects[62] = #Building
  190.           theTrack.objects[74] = #Building
  191.           theTrack.objects[89] = #Building
  192.           theTrack.objects[102] = #Building
  193.           theTrack.objects[115] = #Building
  194.           theTrack.objects[147] = #Building
  195.           theTrack.objects[161] = #Building
  196.           theTrack.objects[172] = #Building
  197.           theTrack.objects[185] = #Building
  198.           theTrack.objects[199] = #Building
  199.           theTrack.objects[208] = #Building
  200.           theTrack.objects[213] = #Building
  201.           theTrack.objects[222] = #Building
  202.           theTrack.objects[231] = #Building
  203.           theTrack.objects[245] = #Building
  204.           theTrack.objects[254] = #Building
  205.           theTrack.objects[263] = #Building
  206.           theTrack.objects[267] = #Building
  207.           theTrack.objects[274] = #Building
  208.         end if
  209.       end if
  210.     end if
  211.   end if
  212.   return theTrack
  213. end
  214.